import React from 'react';
import { BrowserRouter as Router,Route,Link} from 'react-router-dom';
//import Home from './Home';
import Page1 from './Page1';
 
class Page3 extends React.Component{
	render(){
        return (

          
           
			<div>
        
                
               
        
                    <Route exact  path="/Page3/"   component={Home} />
                    <Route  path="/Page1/" component={Page1} />         
                </div>
		);
	}
}


class Home extends React.Component{
 
	render(){
		return(
			<div>
            <div>This is Page3!</div>
                
               
                <Link to="/Page1/"  style={{color:'black'}} replace >
				<div>点击跳转到Page1</div>
                    </Link>
			</div>
		);
	}
}
 
export default Page3;
